<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * AdminAuth
 *
 * @ORM\Table(name="ue_admin_auth", indexes={@ORM\Index(name="ue_admin_auth_admin_id_idx", columns={"admin_id"}), @ORM\Index(name="ue_admin_auth_auth_id_idx", columns={"auth_id"})})
 * @ORM\Entity
 */
class AdminAuth
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var \Admin
     *
     * @ORM\ManyToOne(targetEntity="Admin")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="admin_id", referencedColumnName="id")
     * })
     */
    private $admin;

    /**
     * @var \Auth
     *
     * @ORM\ManyToOne(targetEntity="Auth")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="auth_id", referencedColumnName="id")
     * })
     */
    private $auth;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set admin
     *
     * @param \Ue\ErpBundle\Entity\Admin $admin
     * @return AdminAuth
     */
    public function setAdmin(\Ue\ErpBundle\Entity\Admin $admin = null)
    {
        $this->admin = $admin;

        return $this;
    }

    /**
     * Get admin
     *
     * @return \Ue\ErpBundle\Entity\Admin 
     */
    public function getAdmin()
    {
        return $this->admin;
    }

    /**
     * Set auth
     *
     * @param \Ue\ErpBundle\Entity\Auth $auth
     * @return AdminAuth
     */
    public function setAuth(\Ue\ErpBundle\Entity\Auth $auth = null)
    {
        $this->auth = $auth;

        return $this;
    }

    /**
     * Get auth
     *
     * @return \Ue\ErpBundle\Entity\Auth 
     */
    public function getAuth()
    {
        return $this->auth;
    }
}
